home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / sxwork1.lzh / INCLUDE / SXGRAPH.H < prev    next >
Text File  |  1994-02-20  |  17KB  |  812 lines

  1. /*
  2.  * sxgraph.h X68k SX_SYSTEM ver 2.01 Copyright 1994 SHARP/First Class Technology
  3.  */
  4. #ifndef __SXGRAPH_H
  5. #define __SXGRAPH_H
  6.  
  7. #ifndef __SXDEF2_H
  8. #include <sxdef2.h>
  9. #endif
  10.  
  11. #ifdef FORWORD
  12. #define __PROTO_TYPE
  13. #endif
  14. #ifdef __STDC__
  15. #define __PROTO_TYPE
  16. #endif
  17.  
  18. typedef enum TextColor    TextColor;
  19. typedef enum CapKind    CapKind;
  20. typedef enum JoinKind    JoinKind;
  21. typedef enum ScreenType    ScreenType;
  22. typedef enum FontKind    FontKind;
  23. typedef enum FontTbl    FontTbl;
  24. typedef enum GScriptCommand GScriptCommand;
  25. typedef enum GProc    GProc;
  26. typedef enum RgnProc    RgnProc;
  27. typedef enum HProc    HProc;
  28. typedef enum FontProc    FontProc;
  29. typedef enum FontProcCommand FontProcCommand;
  30.  
  31. typedef struct Polygon    Polygon;
  32. typedef Polygon        ***NPoly;
  33. typedef struct NPolyEnv    NPolyEnv;
  34. typedef struct RectImg    RectImg;
  35. typedef struct Bits    Bits;
  36. typedef struct Pen    Pen;
  37. typedef struct TX16    TX16;
  38. typedef struct GSOneEnv    GSOneEnv;
  39. typedef struct SpltBz    SpltBz;
  40. typedef struct SpltBSp    SpltBSp;
  41. typedef struct FontList    FontList;
  42. /*
  43.  *    グラフマン(Graph Man)
  44.  */
  45. enum TextColor {
  46.     G_THRU,
  47.     G_WHITE        =  8,
  48.     G_LGRAY,
  49.     G_DGRAY,
  50.     G_BLACK,
  51.     G_YELLOW,
  52.     G_RED,
  53.     G_GREEN,
  54.     G_BLUE
  55. };
  56.  
  57. enum CapKind {
  58.     G_BUTTCAP,
  59.     G_ROUNDCAP,
  60.     G_PROJECTCAP
  61. };
  62.  
  63. enum JoinKind {
  64.     G_MITERJOIN,
  65.     G_ROUNDJOIN,
  66.     G_BEVELJOIN
  67. };
  68.  
  69. enum ScreenType {
  70.     G_TXT,
  71.     G_GRP,
  72.     G_GR2,
  73.     G_GR3
  74. };
  75.  
  76. #define G_TXTBASE    ((char *) 0xe00000)
  77. #define G_GRPBASE    ((char *) 0xc00000)
  78.  
  79. #define G_TXTLINE    128
  80. #define G_GRPLINE    2048
  81.  
  82. #define G_TXTPAGE    0x20000
  83.  
  84. #define G_PAGE0        1
  85. #define G_PAGE1        (1 << 1)
  86. #define G_PAGE2        (1 << 2)
  87. #define G_PAGE3        (1 << 3)
  88. #define G_ALLPAGE    0x0f
  89.  
  90. #define G_GRPRATIO    0x8000
  91.  
  92. enum PenModeHi {
  93.     G_FORE,
  94.     G_BACK,
  95.     G_PPAT,
  96.     G_EXPAT
  97. };
  98.  
  99. enum PenModeLow {
  100.     G_PSET,
  101.     G_AND,
  102.     G_OR,
  103.     G_XOR,
  104.     G_NPSET,
  105.     G_NAND,
  106.     G_NOR,
  107.     G_NXOR,
  108.     G_ADD,
  109.     G_ADDLIM,
  110.     G_SUB,
  111.     G_SUBLIM,
  112.     G_SELMAX,
  113.     G_SELMIN,
  114.     G_BLEND        /* 14 */
  115. };
  116.  
  117. enum FontKind {
  118.     G_ROM12,
  119.     G_ROM16,
  120.     G_ROM24,
  121.     G_TRAD        = 128,
  122.     G_AMADEUS,
  123.     G_ARTIST,
  124.     G_BAROQUE,
  125.     G_COMP,
  126.     G_HOUSE,
  127.     G_JACK,
  128.     G_NABLA,
  129.     G_PANK,
  130.     G_SMART,
  131.     G_MG1R        = 531,
  132.     G_MG4R        = 534,
  133.     G_MG7R        = 537,
  134.     G_KG1S        = 561,
  135.     G_KG4S        = 564,
  136.     G_KG7S        = 567
  137. };
  138.  
  139. #define G_PLANE        0
  140. #define G_BOLD        1
  141. #define G_ITALIC    (1 << 1)
  142. #define G_ULINE        (1 << 2)
  143. #define G_OLINE        (1 << 3)
  144. #define G_SHADOW    (1 << 4)
  145. #define G_KERNING    (1 << 5)
  146.  
  147. enum FontTbl {
  148.     GF_HA12,
  149.     GF_ZS12,
  150.     GF_HA16,
  151.     GF_HG16,
  152.     GF_QU16,
  153.     GF_QL16,
  154.     GF_QM16,
  155.     GF_ZA16,
  156.     GF_Z116,
  157.     GF_Z216,
  158.     GF_ZG16,
  159.     GF_ZS16,
  160.     GF_HA24,
  161.     GF_HG24,
  162.     GF_QU24,
  163.     GF_QL24,
  164.     GF_QM24,
  165.     GF_ZA24,
  166.     GF_Z124,
  167.     GF_Z224,
  168.     GF_ZG24,
  169.     GF_ZS24        /* 21 */
  170. };
  171.  
  172. enum GScriptCommand {
  173.     GS_END        = -1,
  174.     GS_NOP,
  175.     GS_REM,
  176.     GS_BITMAP,
  177.     GS_APAGE,
  178.     GS_CLIP,
  179.     GS_PMODE,
  180.     GS_PSIZE,
  181.     GS_FKIND,
  182.     GS_FFACE,
  183.     GS_FMODE,
  184.     GS_FSIZE,
  185.     GS_FORE,
  186.     GS_BACK,
  187.     GS_PPAT,
  188.     GS_EXPAT,
  189.     GS_LINE,
  190.     GS_FRRECT,
  191.     GS_FLRECT,
  192.     GS_FRRRECT,
  193.     GS_FLRRECT,
  194.     GS_FROVAL,
  195.     GS_FLOVAL,
  196.     GS_FRARC,
  197.     GS_FLARC,
  198.     GS_FRPOLY,
  199.     GS_FLPOLY,
  200.     GS_FRRGN,
  201.     GS_FLRGN,
  202.     GS_STR,
  203.     GS_PUT,
  204.     GS_COPY,
  205.     GS_FRNPOLY,
  206.     GS_FLNPOLY    /* 32 */
  207. };
  208.  
  209. enum GProc {
  210.     G_STR,
  211.     G_LINE,
  212.     G_RECT,
  213.     G_RRECT,
  214.     G_OVAL,
  215.     G_ARC,
  216.     G_POLY,
  217.     G_RGN,
  218.     G_COPY,
  219.     G_RSV1,
  220.     G_RSV2,
  221.     G_WIDTH,
  222.     G_LENGTH,
  223.     G_NPOLY,
  224.     G_BEZIER,
  225.     G_BSPLINE    /* 15 */
  226. };
  227.  
  228. enum RgnProc {
  229.     GR_AND,
  230.     GR_OR,
  231.     GR_DIFF,
  232.     GR_XOR
  233. };
  234.  
  235. enum HProc {
  236.     GH_LINE,
  237.     GH_COPY,
  238.     GH_PUT
  239. };
  240.  
  241. enum FontProc {
  242.     GF_FACE,
  243.     GF_PUTCHAR
  244. };
  245.  
  246. enum PlotMode {
  247.     G_STD,
  248.     G_REV,
  249.     G_HILITE,
  250.     G_HILREV,
  251.     G_ERACE,
  252.     G_MESH        = 6,
  253.     G_MESREV,
  254.     G_HIDDEN,
  255.     G_HIDREV
  256. };
  257.  
  258. enum CRTMode {
  259.     G_WS3H,
  260.     G_WS3L,
  261.     G_WS0H,
  262.     G_WS0L,
  263.     G_NS3H,
  264.     G_NS3L,
  265.     G_NS0H,
  266.     G_NS0L,
  267.     G_NM3H,
  268.     G_NM3L,
  269.     G_NM0H,
  270.     G_NM0L,
  271.     G_NL3H,
  272.     G_NL3L,
  273.     G_NL0H,
  274.     G_NL0L,
  275.     G_WS4H,        /* 16 */
  276.     G_WS7V        =  19
  277. };
  278.  
  279. enum CharKind {
  280.     G_HANK,
  281.     G_HGAI,
  282.     G_QUANK,
  283.     G_QLANK,
  284.     G_ZANK        = 5,
  285.     G_ZJIS1,
  286.     G_ZJIS2,
  287.     G_ZGAI,
  288.     G_ZSPC
  289. };
  290.  
  291. struct Polygon {
  292.     long size;
  293.     Rect bounds;
  294.     LPoint pt[_VARLEN];        /* ここは可変長データの先頭    */
  295. };
  296.  
  297. struct NPolyEnv {
  298.     long lineWidth;
  299.     CapKind capKind;
  300.     JoinKind joinKind;
  301.     long miterLimit;
  302. };
  303.  
  304. struct RectImg {
  305.     Rect bounds;
  306.     BitImg data[_VARLEN];        /* ここは可変長データの先頭    */
  307. };
  308.  
  309. struct GScript {
  310.     long size;
  311.     unsigned short version;
  312.     Region clipping;        /* clipping は可変長データ    */
  313. /*    short command[_VARLEN];           command[] も可変長データ    */
  314. };
  315.  
  316. struct Bits {
  317.     Bitmap bmap;
  318.     long size;
  319.     short lockLvl;
  320.     char rsv[16];
  321.     unsigned char data[_VARLEN];    /* ここは可変長データの先頭    */
  322. };
  323.  
  324. struct Pen {
  325.     Point loc;
  326.     Point size;
  327.     unsigned short mode;
  328.     BitImg *pat;
  329. };
  330.  
  331. struct TX16 {
  332.     unsigned long self;
  333.     long size;
  334.     Rect bounds;
  335.     unsigned short palet[16];
  336.     unsigned char data[_VARLEN];    /* ここは可変長データの先頭    */
  337. };
  338.  
  339. struct GSOneEnv {
  340.     GScript **gScript;
  341.     long offset;
  342.     Rect source;
  343.     Rect dest;
  344.     Graph *graph;
  345. };
  346.  
  347. struct SpltBz {
  348.     Point a1;
  349.     Point c1;
  350.     Point c2;
  351.     Point a2;
  352.     Point c3;
  353.     Point c4;
  354.     Point a3;
  355. };
  356.  
  357. struct SpltBSp {
  358.     Point a1;
  359.     Point c1;
  360.     Point a2;
  361.     Point c2;
  362.     Point a3;
  363. };
  364. /*
  365.  *    フォントマン (Font Man)
  366.  */
  367. enum FontProcCommand {
  368.     FP_INIT,
  369.     FP_TINI,
  370.     FP_INFO,
  371.     FP_DRAW,
  372.     FP_LENGTH,
  373.     FP_WIDTH,
  374.     FP_REV,
  375.     FP_RSV,
  376.     FP_MAX        = 7
  377. };
  378.  
  379. struct FontList {
  380.     short ID;
  381.     short type;
  382.     short motherID;
  383.     char name[26];
  384. };
  385.  
  386. #ifdef __PROTO_TYPE
  387. /*
  388.  *    グラフマン(Graph Man)
  389.  */
  390. int GMOpenGraph(int, Graph *);
  391. int GMCloseGraph(Graph *);
  392. int GMInitGraph(Graph *);
  393. int GMSetGraph(Graph *);
  394. Graph *GMGetGraph(void);
  395. int GMCopyGraph(Graph *, Graph *);
  396. void GMMoveGraph(LPoint);
  397. void GMSlideGraph(LPoint);
  398. int GMSetClip(Region **);
  399. int GMGetClip(Region **);
  400. int GMClipRect(Rect *);
  401. int GMSetHome(LPoint);
  402. int GMSetGraphSize(LPoint);
  403. int GMSetBitmap(Bitmap *);
  404. LPoint GMLocalToGlobal(LPoint);
  405. LPoint GMGlobalToLocal(LPoint);
  406. void GMInitPen(void);
  407. BOOLEAN GMPenShow(void);
  408. BOOLEAN GMPenHide(void);
  409. LPoint GMPenSize(LPoint);
  410. int GMPenMode(int);
  411. BitImg *GMPenPat(BitImg *);
  412. BitImg *GMExPat(BitImg *);
  413. int GMForeColor(int);
  414. int GMBackColor(int);
  415. int GMAPage(int);
  416. LPoint GMGetLoc(void);
  417. void GMGetPen(Pen *);
  418. void GMSetPen(Pen *);
  419. void GMInitialize(void);
  420. void GMNullRect(Rect *);
  421. int GMSizeRect(Rect *, LPoint);
  422. int GMAndRects(int, Rect *, Rect *, Rect *, ...);
  423. int GMMoveRect(Rect *, LPoint);
  424. int GMSlideRect(Rect *, LPoint);
  425. int GMInsetRect(Rect *, LPoint);
  426. int GMAndRect(Rect *, Rect *, Rect *);
  427. int GMOrRect(Rect *, Rect *, Rect *);
  428. BOOLEAN GMPtInRect(Rect *, LPoint);
  429. BOOLEAN GMEqualRect(Rect *, Rect *);
  430. BOOLEAN GMEmptyRect(Rect *);
  431. int GMAdjustRect(Rect *, Rect *, Rect *);
  432. Region **GMNewRgn(void);
  433. int GMDisposeRgn(Region **);
  434. int GMOpenRgn(void);
  435. int GMCloseRgn(Region **);
  436. int GMNullRgn(Region **);
  437. int GMRectRgn(Region **, Rect *);
  438. int GMCopyRgn(Region **, Region **);
  439. int GMMoveRgn(Region **, LPoint);
  440. int GMSlideRgn(Region **, LPoint);
  441. int GMInsetRgn(Region **, LPoint);
  442. int GMAndRgn(Region **, Region **, Region **);
  443. int GMOrRgn(Region **, Region **, Region **);
  444. int GMDiffRgn(Region **, Region **, Region **);
  445. int GMXorRgn(Region **, Region **, Region **);
  446. int GMPtInRgn(Region **, LPoint);
  447. int GMRectInRgn(Region **, Rect *);
  448. int GMEqualRgn(Region **, Region **);
  449. int GMEmptyRgn(Region **);
  450. int GMImgToRgn(Region **, Bitmap *, Rect *);
  451. int GMInitBitmap(int, Bitmap *);
  452. void GMMove(LPoint);
  453. void GMMoveRel(LPoint);
  454. int GMLine(LPoint);
  455. int GMLineRel(LPoint);
  456. int GMFrameRect(Rect *);
  457. int GMFillRect(Rect *);
  458. int GMFrameOval(Rect *);
  459. int GMFillOval(Rect *);
  460. int GMFrameRRect(Rect *, LPoint);
  461. int GMFillRRect(Rect *, LPoint);
  462. int GMFrameArc(Rect *, int, int);
  463. int GMFillArc(Rect *, int, int);
  464. int GMFrameRgn(Region **);
  465. int GMFillRgn(Region **);
  466. int GMFramePoly(Polygon **);
  467. int GMFillPoly(Polygon **);
  468. int GMScroll(Rect *, LPoint, Region **);
  469. int GMCopy(Bitmap *, Bitmap *, Rect *, Rect *, int, Region **);
  470. int GMCopyMask(Bitmap *, Bitmap *, Bitmap *, Rect *, LPoint, Rect *);
  471. int GMPlotImg(BitImg *, Rect *, int);
  472. int GMPutRImg(RectImg *, LPoint);
  473. int GMDupHImg(BitImg *, LPoint, int, int);
  474. int GMDupVImg(BitImg *, LPoint, int, int);
  475. int GMDupHRImg(RectImg *, LPoint, int);
  476. int GMDupVRImg(RectImg *, LPoint, int);
  477. int GMFontKind(int);
  478. int GMFontFace(int);
  479. int GMFontMode(int);
  480. LPoint GMFontSize(LPoint);
  481. int GMDrawChar(int);
  482. int GMDrawStrL(const _LASCII);
  483. int GMDrawStr(const char *, long, int);
  484. int GMDrawStrZ(const char *);
  485. long GMCharWidth(int);
  486. long GMStrLWidth(const _LASCII);
  487. long GMStrWidth(const char *, long, int);
  488. int GMStrLength(const char *, long, int);
  489. LPoint GMFontInfo(void);
  490. int GMOpenScript(Region **);
  491. int GMCloseScript(GScript **);
  492. int GMDisposeScript(GScript **);
  493. int GMDrawScript(GScript **, Rect *);
  494. long GMGetScript(GScript **, long);
  495. int GMOpenPoly(void);
  496. int GMClosePoly(Polygon **);
  497. int GMDisposePoly(Polygon **);
  498. int GMShadowStrZ(const char *, LPoint);
  499. int GMShadowRect(Rect *);
  500. int GMInvertRect(Rect *, int);
  501. int GMInvertBits(LPoint, Bitmap *);
  502. LPoint GMMapPt(LPoint, Rect *, Rect *);
  503. void GMMapRect(Rect *, Rect *, Rect *);
  504. void GMMapPoly(Polygon **, Rect *, Rect *);
  505. void GMMapRgn(Region **, Rect *, Rect *);
  506. LPoint GMScalePt(LPoint, Rect *, Rect *);
  507. void GMInitPalet(void);
  508. void GMDrawG16(TX16 *, LPoint);
  509. int GMGetPixel(Bitmap *, LPoint);
  510. int GMCalcMask(BitImg *, BitImg *, int, int, int, int);
  511. int GMCalcFrame(BitImg *, BitImg *, int, int, int, int);
  512. void *SXLongMul(void *, long, long);
  513. int SXFixRound(long);
  514. long SXFixMul(long, long);
  515. long SXFixDiv(int, int);
  516. unsigned char ***GMGetFontTable(void);
  517. void GMCopyStdProc(int (**)());
  518. long GMStrZWidth(const char *);
  519. int GMTransImg(Bitmap *, Bitmap *, Rect *, Rect *);
  520. int GMFillRImg(RectImg *, LPoint);
  521. int GMFillImg(BitImg *, Rect *);
  522. int GMSlidedRgn(Region **, Region **, LPoint);
  523. int GMPaintRgn(Region **, Bitmap *, LPoint);
  524. int GMSetRgnLine(int);
  525. int GMGetRgnLine(void);
  526. int GMInitGraphMode(int);
  527. int GMCurFont(void);
  528. LPoint GMGetScrnSize(void);
  529. Graph *GMExgGraph(Graph *);
  530. Bitmap *GMExgBitmap(Bitmap *);
  531. Bitmap *GMGetBitmap(void);
  532. int GMCalcBitmap(Bitmap *);
  533. long GMCalcScrnSize(Bitmap *);
  534. Bits **GMNewBits(int, Rect *, int);
  535. void GMDisposeBits(Bits **);
  536. int GMLockBits(Bits **);
  537. int GMUnlockBits(Bits **);
  538. int GMItalicRect(Rect *);
  539. int GMItalicRgn(Region **, Rect *);
  540. void GMFreeBits(Bits **);
  541. int GMCalcGraph(Graph *);
  542. long GMPackImage(void *, void *, long);
  543. long GMUnpackImage(void *, void *, long);
  544. LPoint GMAdjustPt(LPoint, Rect *);
  545. int GMPutImg(BitImg *, Rect *);
  546. int GMCenterRect(Rect *, Rect *, LPoint, int);
  547. int GMScrewRect(Rect *);
  548. int GMAndRectRgn(Region **, Region **, Rect *);
  549. int GMOrRectRgn(Region **, Region **, Rect *);
  550. int GMDiffRectRgn(Region **, Region **, Rect *);
  551. int GMXorRectRgn(Region **, Region **, Rect *);
  552. int GMCharKind(int);
  553. int GMDiffRgnRect(Region **, Rect *, Region **);
  554. int (**GMGetHProcTbl(void))();
  555. int (**GMGetStdProcTbl(void))();
  556. int (**GMGetFontProcTbl(void))();
  557. void (**GMGetRgnProcTbl(void))();
  558. int GMDrawGsOne(GSOneEnv *);
  559. int GMPtInImg(RectImg *, LPoint, int);
  560. int GMFrameNPoly(NPoly *, NPolyEnv *);
  561. int GMFillNPoly(NPoly *, NPolyEnv *);
  562. Region **GMNPolyFrRgn(Region **, NPoly *, NPolyEnv *, Rect *);
  563. Region **GMNPolyFlRgn(Region **, NPoly *, NPolyEnv *, Rect *);
  564. BOOLEAN GMPtInNPoly(NPoly *, NPolyEnv *, LPoint);
  565. BOOLEAN GMPtOnNPoly(NPoly *, NPolyEnv *, LPoint);
  566. int GMRecordScript(_Handle, long, long);
  567. int GMNLineRel(LPoint, NPolyEnv *);
  568. int GMNLine(LPoint, NPolyEnv *);
  569. int GMRecordPoly(LPoint);
  570. int GMSetFlattness(int);
  571. int GMGetFlattness(void);
  572. int GMDrawBezier(LPoint, LPoint, LPoint);
  573. int GMDrawBSpline(LPoint, LPoint);
  574. int GMSplitBezier(LPoint, LPoint, LPoint, long, SpltBz *);
  575. int GMSplitBSpline(LPoint, LPoint, long, SpltBSp *);
  576. long GMPtOnBezier(LPoint, LPoint, LPoint, LPoint);
  577. long GMPtOnBSpline(LPoint, LPoint, LPoint);
  578. int GMSetGSDraw(int, int (*)());
  579. int (*GMGetGSDraw(int))();
  580. int GMSetGSGet(int, int (*)());
  581. int (*GMGetGSGet(int))();
  582. /*
  583.  *    フォントマン (Font Man)
  584.  */
  585. int FMInit(void);
  586. FontList *FMGetFontList(void);
  587. int FMSetCacheSize(int);
  588. int FMGetCacheSize(void);
  589. int FMSetSpaceWidth(int);
  590. int FMGetSpaceWidth(void);
  591. int FMSetTracking(int);
  592. int FMGetTracking(void);
  593. int FMGetKerningWidth(int, int);
  594. int FMFontMenuSelect(LPoint);
  595. NPoly *FMGetFontPolyData(int);
  596.  
  597. #undef __PROTO_TYPE
  598. #else
  599. /*
  600.  *    グラフマン(Graph Man)
  601.  */
  602. int GMOpenGraph();
  603. int GMCloseGraph();
  604. int GMInitGraph();
  605. int GMSetGraph();
  606. Graph *GMGetGraph();
  607. int GMCopyGraph();
  608. void GMMoveGraph();
  609. void GMSlideGraph();
  610. int GMSetClip();
  611. int GMGetClip();
  612. int GMClipRect();
  613. int GMSetHome();
  614. int GMSetGraphSize();
  615. int GMSetBitmap();
  616. LPoint GMLocalToGlobal();
  617. LPoint GMGlobalToLocal();
  618. void GMInitPen();
  619. BOOLEAN GMPenShow();
  620. BOOLEAN GMPenHide();
  621. LPoint GMPenSize();
  622. int GMPenMode();
  623. BitImg *GMPenPat();
  624. BitImg *GMExPat();
  625. int GMForeColor();
  626. int GMBackColor();
  627. int GMAPage();
  628. LPoint GMGetLoc();
  629. void GMGetPen();
  630. void GMSetPen();
  631. void GMInitialize();
  632. void GMNullRect();
  633. int GMSizeRect();
  634. int GMAndRects();
  635. int GMMoveRect();
  636. int GMSlideRect();
  637. int GMInsetRect();
  638. int GMAndRect();
  639. int GMOrRect();
  640. BOOLEAN GMPtInRect();
  641. BOOLEAN GMEqualRect();
  642. BOOLEAN GMEmptyRect();
  643. int GMAdjustRect();
  644. Region **GMNewRgn();
  645. int GMDisposeRgn();
  646. int GMOpenRgn();
  647. int GMCloseRgn();
  648. int GMNullRgn();
  649. int GMRectRgn();
  650. int GMCopyRgn();
  651. int GMMoveRgn();
  652. int GMSlideRgn();
  653. int GMInsetRgn();
  654. int GMAndRgn();
  655. int GMOrRgn();
  656. int GMDiffRgn();
  657. int GMXorRgn();
  658. int GMPtInRgn();
  659. int GMRectInRgn();
  660. int GMEqualRgn();
  661. int GMEmptyRgn();
  662. int GMImgToRgn();
  663. int GMInitBitmap();
  664. void GMMove();
  665. void GMMoveRel();
  666. int GMLine();
  667. int GMLineRel();
  668. int GMFrameRect();
  669. int GMFillRect();
  670. int GMFrameOval();
  671. int GMFillOval();
  672. int GMFrameRRect();
  673. int GMFillRRect();
  674. int GMFrameArc();
  675. int GMFillArc();
  676. int GMFrameRgn();
  677. int GMFillRgn();
  678. int GMFramePoly();
  679. int GMFillPoly();
  680. int GMScroll();
  681. int GMCopy();
  682. int GMCopyMask();
  683. int GMPlotImg();
  684. int GMPutRImg();
  685. int GMDupHImg();
  686. int GMDupVImg();
  687. int GMDupHRImg();
  688. int GMDupVRImg();
  689. int GMFontKind();
  690. int GMFontFace();
  691. int GMFontMode();
  692. LPoint GMFontSize();
  693. int GMDrawChar();
  694. int GMDrawStrL();
  695. int GMDrawStr();
  696. int GMDrawStrZ();
  697. long GMCharWidth();
  698. long GMStrLWidth();
  699. long GMStrWidth();
  700. int GMStrLength();
  701. LPoint GMFontInfo();
  702. int GMOpenScript();
  703. int GMCloseScript();
  704. int GMDisposeScript();
  705. int GMDrawScript();
  706. long GMGetScript();
  707. int GMOpenPoly();
  708. int GMClosePoly();
  709. int GMDisposePoly();
  710. int GMShadowStrZ();
  711. int GMShadowRect();
  712. int GMInvertRect();
  713. int GMInvertBits();
  714. LPoint GMMapPt();
  715. void GMMapRect();
  716. void GMMapPoly();
  717. void GMMapRgn();
  718. LPoint GMScalePt();
  719. void GMInitPalet();
  720. void GMDrawG16();
  721. int GMGetPixel();
  722. int GMCalcMask();
  723. int GMCalcFrame();
  724. void *SXLongMul();
  725. int SXFixRound();
  726. long SXFixMul();
  727. long SXFixDiv();
  728. unsigned char ***GMGetFontTable();
  729. void GMCopyStdProc();
  730. long GMStrZWidth();
  731. int GMTransImg();
  732. int GMFillRImg();
  733. int GMFillImg();
  734. int GMSlidedRgn();
  735. int GMPaintRgn();
  736. int GMSetRgnLine();
  737. int GMGetRgnLine();
  738. int GMInitGraphMode();
  739. int GMCurFont();
  740. LPoint GMGetScrnSize();
  741. Graph *GMExgGraph();
  742. Bitmap *GMExgBitmap();
  743. Bitmap *GMGetBitmap();
  744. int GMCalcBitmap();
  745. long GMCalcScrnSize();
  746. Bits **GMNewBits();
  747. void GMDisposeBits();
  748. int GMLockBits();
  749. int GMUnlockBits();
  750. int GMItalicRect();
  751. int GMItalicRgn();
  752. void GMFreeBits();
  753. int GMCalcGraph();
  754. long GMPackImage();
  755. long GMUnpackImage();
  756. LPoint GMAdjustPt();
  757. int GMPutImg();
  758. int GMCenterRect();
  759. int GMScrewRect();
  760. int GMAndRectRgn();
  761. int GMOrRectRgn();
  762. int GMDiffRectRgn();
  763. int GMXorRectRgn();
  764. int GMCharKind();
  765. int GMDiffRgnRect();
  766. int (**GMGetHProcTbl())();
  767. int (**GMGetStdProcTbl())();
  768. int (**GMGetFontProcTbl())();
  769. void (**GMGetRgnProcTbl())();
  770. int GMDrawGsOne();
  771. int GMPtInImg();
  772. int GMFrameNPoly();
  773. int GMFillNPoly();
  774. Region **GMNPolyFrRgn();
  775. Region **GMNPolyFlRgn();
  776. BOOLEAN GMPtInNPoly();
  777. BOOLEAN GMPtOnNPoly();
  778. int GMRecordScript();
  779. int GMNLineRel();
  780. int GMNLine();
  781. int GMRecordPoly();
  782. int GMSetFlattness();
  783. int GMGetFlattness();
  784. int GMDrawBezier();
  785. int GMDrawBSpline();
  786. int GMSplitBezier();
  787. int GMSplitBSpline();
  788. long GMPtOnBezier();
  789. long GMPtOnBSpline();
  790. int GMSetGSDraw();
  791. int (*GMGetGSDraw())();
  792. int GMSetGSGet();
  793. int (*GMGetGSGet())();
  794. /*
  795.  *    フォントマン (Font Man)
  796.  */
  797. int FMInit();
  798. FontList *FMGetFontList();
  799. int FMSetCacheSize();
  800. int FMGetCacheSize();
  801. int FMSetSpaceWidth();
  802. int FMGetSpaceWidth();
  803. int FMSetTracking();
  804. int FMGetTracking();
  805. int FMGetKerningWidth();
  806. int FMFontMenuSelect();
  807. NPoly *FMGetFontPolyData();
  808.  
  809. #endif __PROTO_TYPE
  810.  
  811. #endif __SXGRAPH_H
  812.